package sc.common.test.hotws;

import java.util.Date;

import javax.jws.WebMethod;
import javax.jws.WebService;

import sc.common.test.TestUtil;

@WebService(targetNamespace = "http://www.heapstack.cn/ws/MyServer"
	, endpointInterface = "sc.common.test.hotws.MyService"
	, serviceName = "MyService")
public class MyServiceImpl implements MyService {

	@WebMethod
	public String serve(MyRequest req) {
		// TestUtil.sp("Get request: %s", req);
		return String.format("Hello, your request is %s. @ %s", req,
				TestUtil.toReadable(new Date()));
	}
	
	@WebMethod
	public String serve2(){
		return "lala";
	}
}
